package com.dhl.fin.api.domain;

import com.dhl.fin.api.common.domain.BasicDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @author CuiJianbo
 * @since 2025/4/9
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_bank_card_money_report")
public class BankCardMoneyReport extends BasicDomain  {

    @Column(columnDefinition = "int")
    private Integer year;

    @Column(columnDefinition = "int")
    private Integer month;

    @Column(columnDefinition = "char(10)")
    private String yearMonthDate;

    @Column(columnDefinition = "decimal(10,2)")
    private Double currentBalance;

    @Column(columnDefinition = "decimal(10,2)")
    private Double currentInterestIncome;

    @ManyToOne
    @JoinColumn(name = "bank_account_id")
    private BankAccount bankAccount;


}
